#ifndef STEAM2FB_H
#define STEAM2FB_H

#include <QSystemTrayIcon>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QTimer>

#include "SteamConnector.h"
#include "data/Config.h"

class Steam2Fb : public QSystemTrayIcon
{
Q_OBJECT
public:
    explicit Steam2Fb(QObject *parent = 0);

signals:

public slots:

private slots:
    void steamData(QMap<QString, Game>);
    void wizAccepted();
    void wizRejected();
    void gotReply(QNetworkReply *reply);
    void getSteamData();

private:
    SteamConnector *m_steamConnector;
    Config *config;
    bool m_hasSavedSteamData;
    bool loadSteamData();
    bool saveSteamData();
    QMap<QString, Game> m_gameMap;
    void publishToFb(QList<Game> pubList);
    QNetworkAccessManager *m_nam;
    QTimer *m_timer;

};

#endif // STEAM2FB_H
